StringScanner.ScanToDigit Function
Syntax
Text as C = ScanToDigit as C()
Arguments
- Text
The text between the starting and ending offset positions.
Description
Skip until a digit (0-9) is encountered. Return text we scanned over.
Discussion
The <StringScanner>.ScanToDigit() function moves the offset to the first numeric character (0 to 9) and returns the text between the starting and ending positions of the offset.
Example
dim scanner as P dim txt as C txt = <<%text% <..> is wonderful prose written by a technical writer of 2456. %text% scanner = stringscanner.create(txt) ? scanner.ScanToDigit() = <..> is wonderful prose written by a technical writer of ? scanner.GetToOffset() = <..> is wonderful prose written by a technical writer of ? scanner.getremainder() = 2456.
See Also